import Router from 'koa-router'

const { typeIdExist } = require('../middleware/course_type.middleware')
const { getCities, getAreaById, getProvs } = require('../controller/area.controller') 
const router = new Router()

/**
 * 地区相关模块
 * @description area
 */
router.get('/Cities', getCities) // 获取单个城市（通过省名和城市名）
router.get('/Cities/Provs/:id', getAreaById) // 通过id获取城市或者区县
router.get('/Provs', getProvs) // 获取所有的省

module.exports = router